<?PHP
require_once('sample.class.php');

$sample =  new sample;
$factory = new factory($sample);

?>
<html>
<head>
<style>.hl-default {
    color: Black;}
.hl-code {
    color: Gray;}
.hl-brackets {
    color: Olive;}
.hl-comment {
    color: Orange;}
.hl-quotes {
    color: Darkred;}
.hl-string {
    color: Red;}
.hl-identifier {
    color: Blue;}
.hl-builtin {
    color: Teal;}
.hl-reserved {
    color: Green;}
.hl-inlinedoc {
    color: Blue;}
.hl-var {
    color: Darkblue;}
.hl-url {
    color: Blue;}
.hl-special {
    color: Navy;}
.hl-number {
    color: Maroon;}
.hl-inlinetags {
    color: Blue;}
.hl-main {
    background-color: White;}
.hl-gutter {
    background-color: #999999;
    color: White}
.hl-table {
    font-family: courier;
    font-size: 12px;
    border: solid 1px Lightgrey;}
</style>
<title>egonframe test</title>
</head>
<body>
<br />
<?php
	echo $factory->write_file($factory->model->get_name().'_delete.tpl', $factory->make_delete_tpl());
	$factory->display_code($factory->model->paths['apps_home']->get_primary().$factory->model->get_name().'/'.$factory->model->get_name().'_delete.tpl', 'html');

	echo $factory->write_file($factory->model->get_name().'_display_one.tpl', $factory->make_display_one_tpl());
	$factory->display_code($factory->model->paths['apps_home']->get_primary().$factory->model->get_name().'/'.$factory->model->get_name().'_display_one.tpl', 'html');


	echo $factory->write_file($factory->model->get_name().'_display_all.tpl', $factory->make_display_all_tpl());
	$factory->display_code($factory->model->paths['apps_home']->get_primary().$factory->model->get_name().'/'.$factory->model->get_name().'_display_all.tpl', 'html');


	echo $factory->write_file($factory->model->get_name().'_create_table_DB.php', $factory->make_create_table_DB());
	$factory->display_code($factory->model->paths['apps_home']->get_primary().$factory->model->get_name().'/'.$factory->model->get_name().'_create_table_DB.php', 'php');

	echo $factory->write_file($factory->model->get_name().'_input.tpl', $factory->make_input_tpl());
	$factory->display_code($factory->model->paths['apps_home']->get_primary().$factory->model->get_name().'/'.$factory->model->get_name().'_input.tpl', 'html');

	echo $factory->write_file($factory->model->get_name().'_edit.tpl', $factory->make_edit_tpl());
	$factory->display_code($factory->model->paths['apps_home']->get_primary().$factory->model->get_name().'/'.$factory->model->get_name().'_edit.tpl', 'html');
	
	echo $factory->write_file($factory->model->get_name().'_control.php', $factory->make_control());
	$factory->display_code($factory->model->paths['apps_home']->get_primary().$factory->model->get_name().'/'.$factory->model->get_name().'_control.php', 'php');

?>
<br />
<br />
<hr />
<table align=center width=90%>
	<tr><td><pre>
<?php 
var_dump($sample); 
?>
	</pre></td></tr>
</table>
</body>
</html>
